/*
 * ------------------------------------------------------------------
 * Copyright © 2017 Hangzhou DtDream Technology Co.,Lt d. All rights reserved.
 * ------------------------------------------------------------------
 *       Product:
 *   Module Name:
 *  Date Created: 2023/10/7
 *   Description:
 * ------------------------------------------------------------------
 * Modification History
 * DATE            Name           Description
 * ------------------------------------------------------------------
 * 2023/10/7    小谷 g2038          created
 * ------------------------------------------------------------------
 */
package com.flynn.rock.crm.model.customer;

import com.flynn.rock.enums.GenderType;
import com.flynn.rock.enums.customer.CustomerType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "接收客户信息")
public class ReceiveCustomerInfo {

    @NotBlank(message = "姓名不能为空")
    @Schema(description = "客户姓名")
    private String customerName;

    @NotBlank(message = "身份证号码不能为空")
    @Schema(description = "客户身份证号码")
    private String identityNumber;

    @Schema(description = "客户性别")
    private GenderType gender;

    @Schema(description = "客户年龄")
    private Integer age;

    @NotBlank(message = "电话不能为空")
    @Schema(description = "客户电话")
    private String phone;

    @Schema(description = "客户邮箱")
    private String email;

    @Schema(description = "客户微信")
    private String weChat;

    @Schema(description = "客户类型")
    private CustomerType customerType = CustomerType.personal;

    @Schema(description = "客户居住地址")
    private String customerAddress;

    @Schema(description = "客户等级")
    private Integer customerRank;

    @Schema(description = "贷款额度")
    private Integer loanLimit;
}
